package com.samsungmobile.common_module.Parser;

import java.util.ArrayList;
import java.util.List;

import com.samsungmobile.common_module.Bean.Item;
import com.samsungmobile.common_module.Bean.Item.ItemType;

public class ResponseData {

	protected String responseCode;
	protected String errorMessage;

	private List<Item> itemList;
	protected ItemType itemType;

	private ResponseData() {}
	
	public ResponseData(ItemType itemType){
		this.itemType = itemType;
	}
	
	public ItemType getItemType() {
		return itemType;
	}

	public void setItemType(ItemType itemType) {
		this.itemType = itemType;
	}

	public List<Item> getItemList() {
		return itemList;
	}

	public void setItemList(List<Item> itemList) {
		this.itemList = itemList;
	}
	
	
	public void addItem(Item item){
		if(itemList == null){
			this.itemList = new ArrayList<Item>();
		}
		this.itemList.add(item);
	}
	
	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public String getResponseCode() {
		return responseCode;
	}

	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}
}
